from flask_cli import FlaskCLI
from flask_migrate import Migrate
from layui_flask import create_app
from app.models import db

app = create_app()
# 数据库迁移
FlaskCLI(app)
Migrate(app, db)

if __name__ == '__main__':
    app.run()
